<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="d" uri="/WEB-INF/resource.tld" %>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>
  
  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/ecommerce">课程管理</a></li>
          <li class="active">排课管理</li>
          <li class="no-before pull-right" style="min-width: 65px;">
            <a onclick="window.history.back();"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</a>
          </li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire" title="1v1学员基础信息"></i>&nbsp;&nbsp;<span>1V1线下减脂营&nbsp;-&nbsp;学员基础信息</span></h2>
              <div class="pull-right">
                <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/print?generated=false" class="btn btn-success x-btn btn-shadow btn-shadow-success ">打印课件</a>
                <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/print?generated=true" class="btn btn-success x-btn btn-shadow btn-shadow-success ">打印已发送课件</a>
              </div>
            </div>
          </div>
          
          <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
          
            <div class="x-breadcrumb-wrapper top-margin-20" style="position: relative;">
              <ul class="nav nav-pills x-breadcrumb-nav">
                <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}">基本信息</a></li>
                <c:if test="${not empty courseRound.fitnessGroup}">
                  <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/batch-coursewares/weekly-plan/1">周计划</a></li>
                  <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/batch-coursewares/1?type=course">课程</a></li>
                </c:if>
                <c:if test="${!courseRound.courseStatus.prepare}">
                  <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/physical-data">身体数据</a></li>
                </c:if>
                <li class="pull-left active"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/basic-information">学员基础信息</a></li>
                <c:if test="${not empty resultReport}">
                <li class="pull-left"><a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/result-report">成果报告</a></li>
                </c:if>
              </ul>
            </div>
          
          <div class="clearfix">
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>目标</span>
                </h2>
              </div>
            </div>
  
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <thead>
                <tr>
                  <th>希望在${goal.reachTime}达成${goal.content}</th>
                </tr>
              </thead>
            </table>
              
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>身体数据目标</span>
                </h2>
              </div>
            </div>
              
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <thead>
                <tr>
                  <th></th>
                  <th>当前数据</th>
                  <th>远期目标数字</th>
                  <th>${courseRound.fitnessGroup.weeks}周内目标数字</th>
                </tr>
              </thead>
              <tbody>
                <c:forEach var="target" items="${targets}">
                  <tr>
                    <td>${target.bodyDataType.description}<c:if test="${not empty target.bodyDataType.unit}">(${target.bodyDataType.unit})</c:if></td>
                    <td><fmt:formatNumber value='${target.currentValue}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                    <td><fmt:formatNumber value='${target.idealValue}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                    <td><fmt:formatNumber value='${target.coachIdealValue}' minFractionDigits='0' maxFractionDigits='2'></fmt:formatNumber></td>
                  </tr>
                </c:forEach>
              </tbody>
            </table>
          
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>学员评估</span>
                </h2>
                
                <!-- <div class="btn-group pull-right">
                  <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/basic-information/edit-assessment" data-toggle="modal" data-target="#assessment-edit" class="btn btn-default x-btn btn-shadow btn-shadow-default">
                    <i class="glyphicon glyphicon-edit"></i>&nbsp;&nbsp;编辑
                  </a>
                </div> -->
              </div>
            </div>
            
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <tbody>
                <tr>
                  <td rowspan="6" width="10%">心肺</td>
                  <td width="20%">静态心率</td>
                  <td width="20%"><c:if test="${not empty basicData.restingHeartRate}">${basicData.restingHeartRate}次/分</c:if></td>
                  <td rowspan="14" width="10%">体态</td>
                  <td colspan="2" width="40%">静态正面站姿</td>
                </tr>
                <tr>
                  <td>最大心率（220-年龄）</td>
                  <td><c:if test="${not empty basicData.maxHeartRate}">${basicData.maxHeartRate}次/分</c:if></td>
                  <td width="20%">头部</td>
                  <td width="20%">${postureJoint.obverseHead.head}</td>
                </tr>
                <tr>
                  <td rowspan="2">最佳燃脂心率<br>（最大心率的60%-80%）</td>
                  <td rowspan="2"><c:if test="${not empty basicData.burnFatRate}">${basicData.burnFatRate}次/分</c:if></td>
                  <td>肩胛骨</td>
                  <td>${postureJoint.obverseScapula.scapula}</td>
                </tr>
                <tr>
                  <td>骨盆</td>
                  <td>${postureJoint.obversePelvis.pelvis}</td>
                </tr>
                <tr>
                  <td>一分钟波比跳</td>
                  <td>${empty basicData.standardBobi ? '' : (basicData.standardBobi ? '标准' : '简化')},${basicData.bobi}</td>
                  <td>膝关节</td>
                  <td>${postureJoint.obverseKneeJoint.kneeJoint}</td>
                </tr>
                <tr>
                  <td>心血管病史</td>
                  <td>${basicData.cardiovascular}</td>
                  <td colspan="2">静态背面站姿</td>
                </tr>
                <tr>
                  <td rowspan="3">基础力量</td>
                  <td>静蹲</td>
                  <td>${basicData.staticSquat.staticSquat}</td>
                  <td>头部</td>
                  <td>${postureJoint.reverseHead.head}</td>
                </tr>
                <tr>
                  <td>俯卧撑（30s）</td>
                  <td>${basicData.pushUp.pushUp}</td>
                  <td>颈椎</td>
                  <td>${postureJoint.reverseCervicalVertebra.cervicalVertebra}</td>
                </tr>
                <tr>
                  <td>两头起（30s）</td>
                  <td>${basicData.vUp.vUp}</td>
                  <td>髋关节</td>
                  <td>${postureJoint.reverseHipJoint.hipJoint}</td>
                </tr>
                <tr>
                  <td>运动病史</td>
                  <td colspan="2">
                    <c:forEach var="disease" items="${basicData.diseaseList}">
                      ${disease.description},
                    </c:forEach>
                  </td>
                  <td>膝关节</td>
                  <td>${postureJoint.reverseKneeJoint.kneeJoint}</td>
                </tr>
                <tr>
                  <td>妈妈学员</td>
                  <td colspan="2">腹直肌分离：${basicData.rectusAbdominisIsolation.description}</td>
                  <td>足部</td>
                  <td>${postureJoint.reverseFoot.foot}</td>
                </tr>
                <tr>
                  <td rowspan="9">其他</td>
                  <td rowspan="9" colspan="2">${basicData.remark}</td>
                  <td colspan="2">自重深蹲</td>
                </tr>
                <tr>
                  <td>膝盖伸展方向</td>
                  <td>${postureJoint.kneeDirection.kneeDirection}</td>
                </tr>
                <tr>
                  <td>上半身于小腿是否平行</td>
                  <td><c:if test="${not empty postureJoint.parallel}">${postureJoint.parallel ? '是' : '否'}</c:if></td>
                </tr>
                <tr>
                  <td rowspan="6">关节</td>
                  <td>胸椎</td>
                  <td>${postureJoint.thoracicVertebra.description}</td>
                </tr>
                <tr>
                  <td>胸后侧肌群</td>
                  <td>${postureJoint.legMuscle.description}</td>
                </tr>
                <tr>
                  <td>髋关节</td>
                  <td>${postureJoint.hipJoint.description}</td>
                </tr>
                <tr>
                  <td>肩关节</td>
                  <td>${postureJoint.shoulderJoint.description}</td>
                </tr>
                <tr>
                  <td>踝关节</td>
                  <td>${postureJoint.ankleJoint.description}</td>
                </tr>
                <tr>
                  <td>其他</td>
                  <td>${postureJoint.jointRemark}</td>
                </tr>
              </tbody>
            </table>
            
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>学员作息/饮食/运动习惯</span>
                </h2>
                
                <!-- <div class="btn-group pull-right">
                  <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/basic-information/edit-habit" data-toggle="modal" data-target="#habit-edit" class="btn btn-default x-btn btn-shadow btn-shadow-default">
                    <i class="glyphicon glyphicon-edit"></i>&nbsp;&nbsp;编辑
                  </a>
                </div> -->
              </div>
            </div>
              
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <tbody>
                <tr>
                  <td width="16.5%"><strong>早起时间：</strong></td>
                  <td width="16.5%">${habit.getUpTime}</td>
                  <td width="16.5%"><strong>入睡时间：</strong></td>
                  <td width="16.5%">${habit.sleepTime}</td>
                  <td width="17%"><strong>应酬频率：</strong></td>
                  <td width="17%">${habit.entertainmentFrequency}</td>
                </tr>
                <tr>
                  <td></td>
                  <td><strong>早</strong></td>
                  <td><strong>中</strong></td>
                  <td><strong>晚</strong></td>
                  <td colspan="2"><strong>其他摄入食物</strong></td>
                </tr>
                <tr>
                  <td><strong>摄入时间：</strong></td>
                  <td>${habit.breakfastTime}</td>
                  <td>${habit.lunchTime}</td>
                  <td>${habit.dinnerTime}</td>
                  <td colspan="2">${habit.snackTime}</td>
                </tr>
                <tr>
                  <td><strong>摄入具体食物类型及比例：</strong></td>
                  <td>${habit.breakfastType}</td>
                  <td>${habit.lunchType}</td>
                  <td>${habit.dinnerType}</td>
                  <td colspan="2">${habit.snackType}</td>
                </tr>
                <tr>
                  <td><strong>摄入量：</strong></td>
                  <td>${habit.breakfastIntake}</td>
                  <td>${habit.lunchIntake}</td>
                  <td>${habit.dinnerIntake}</td>
                  <td colspan="2">${habit.snackIntake}</td>
                </tr>
                <tr>
                  <td><strong>饮水量：</strong></td>
                  <td colspan="5">${habit.waterIntake}</td>
                </tr>
                <tr>
                  <td><strong>其他：</strong></td>
                  <td colspan="5">${habit.remark}</td>
                </tr>
              </tbody>
            </table>
            
            <div class="x-breadcrumb-wrapper" style="margin-top:20px;">
              <div class="x-breadcrumb yellow clearfix">
                <h2>
                  <span>关节灵活性评估</span>
                </h2>
                
                <!-- <div class="btn-group pull-right">
                  <a href="${ctx.host}/${pagetype}-rounds/${courseRound.id}/basic-information/edit-joint-flexibility" data-toggle="modal" data-target="#joint-flexibility-edit" class="btn btn-default x-btn btn-shadow btn-shadow-default">
                    <i class="glyphicon glyphicon-edit"></i>&nbsp;&nbsp;编辑
                  </a>
                </div> -->
              </div>
            </div>
              
            <table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
              <tbody>
                <tr>
                  <td width="10%">体态总结：</td>
                  <td width="90%">${postureJoint.postureSummary}</td>
                </tr>
                <tr>
                  <td width="10%">关节总结：</td>
                  <td width="90%">${postureJoint.jointSummary}</td>
                </tr>
                <tr>
                  <td width="10%">总结：</td>
                  <td width="90%">${postureJoint.summary}</td>
                </tr>
              </tbody>
            </table>
          </div>
          
        </div>
          
        </div>

      </div>

    </div>
    </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/course/basic-information-view.js">
    <script type="text/javascript">
      require(['page/course/basic-information-view'], function(page) {
        page.init()
      })
    </script>
  </d:resource>
  
</body>

</html>
